package com.cyz.web.app.webflux;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

@RestController("user")
public class UserController {

    @GetMapping("demo")
    public Mono<ServerResponse> demo(){
        return ServerResponse.ok().bodyValue("hello world");
    }


}
